<?php

namespace App\Models\Finance;

use Illuminate\Database\Eloquent\Model;

/**
 * 薪资报表数据模型
 *
 * Date: 2018/6/12
 * @author George
 * @property int $id
 * @property int $year
 * @property string $month
 * @property int $company_id
 * @property int $social_security_id
 * @property int $user_id
 * @property int $pattern_id
 * @property int $attendance_days
 * @property int $holidays
 * @property array $custom_fields
 * @package App\Models\Finance
 */
class Wages extends Model
{
	/**
	 * 定义可批量填充字段
	 *
	 * @var array
	 * Date: 19/03/2018
	 * @author George
	 */
	protected $guarded = ['id'];

	/**
	 * 定义属性数据类型
	 *
	 * @var array
	 * Date: 2018/6/5
	 * @author George
	 */
	protected $casts = [
		'custom_fields' => 'array'
	];
}
